<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">		
		<form class="well form-inline margin-top-20" method="post" action="{:url('OrderAdmin/index')}">
		<input name='storeid' value='{$storeid}' style="display:none;">
            订单号:
        <input type="text" class="form-control" name="orderNo" id="orderNo" style="width: 120px;" value="" placeholder="订单号">
            会员号:
        <input type="text" class="form-control" name="cardid" id="cardid" style="width: 120px;" value="" placeholder="会员卡号">       
     时间:
        <input type="text" class="form-control js-bootstrap-date" name="start_time" id="start_time" value="{$start_time|default=''}" style="width: 140px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-date" name="end_time"   id="end_time" value="{$end_time|default=''}" style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;         
        <input type="submit" class="btn btn-primary" value="搜索" />
        <!-- <a class="btn btn-danger" href="{:url('OrderAdmin/index')}">清空</a> -->
		<!-- <a title="数据导出" onclick="exportdata()" id="export" class="btn btn-success" style="margin-left: 10px;">数据导出</a> -->
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="40">ID</th>
					<th align="left">订单号</th>
					<th align="left">会员</th>
					<th align="left">会员卡号</th>
					<th align="left">收银员</th>
					<th align="left">总价</th>
					<th align="left">实价</th>
					<th align="left">优惠金额</th>
					<th align="left">给钱</th>
					<th align="left">找零</th>
					<th align="left">付款类型</th>
					<th align="left">付款状态</th>
					<th align="left">店铺</th>
					<th align="left">时间</th>										
					<th width="160">操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.orderNo}</td>
					<td>{:get_member_data($vo['userid'],'uname')}</td>
					<td>{$vo.cardid}</td>
					<td>{:get_operator_data($vo['operatorid'],'user_login')}</td>
					<td>{$vo.totalMoney}</td>
					<td>{$vo.actualMoney}</td>
					<td>{$vo.discount}</td>
					<td>{$vo.getMoney}</td>
					<td>{$vo.giveChange}</td>
					<td>{:get_pay_type_val($vo['payType'])}</td>
					<td>{$vo.payStatus|get_pay_status}</td>
					<td>{:get_store_data($vo['storeid'],'store_name')}</td>
					<td>{$vo.ctime|time_format}</td>
					<td>												
						<a href="javascript:parent.openIframeLayer('{:url('OrderAdmin/detail',array('id'=>$vo['id']))}',{});">订单详情</a>						
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>	
	<script>
function exportdata()
{
	var orderNo=$("#orderNo").val();
	var cardid=$("#cardid").val();
	var starttime=$("#start_time").val();
	var endtime=$("#end_time").val();
	var storeid=$("#storeid").val();
	location="./importData?orderNo="+orderNo+"&cardid="+cardid+"&starttime="+starttime+"&endtime="+endtime+"&storeid="+storeid;
}
</script>  
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>